package org.linlinjava.litemall.db.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.linlinjava.litemall.db.models.GoodsProduct;

import java.util.List;

public interface GoodsProductService extends IService<GoodsProduct> {

    public List<GoodsProduct> queryByGid(Long gid) ;
    public int count() ;

    public void deleteByGid(Long gid);

    public int addStock(Long id, Integer num);

    public int reduceStock(Long id, Integer num);
}